-
Notifications
You must be signed in to change notification settings - Fork 79
1084 qiime map #1219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1084 qiime map #1219
Conversation
|
Changes Unknown when pulling 9db35a5 on josenavas:1084-qiime-map into * on biocore:fix-1084*. |
|
Works fine. Except that the validation doesn't accept comments (lines that start with #). Also, I know is not part of this issue but it will be great if you could fix the warnings when adding a template. The issue is that if you have warnings about EBI, processing, etc all of them are in a single line, could you put them in different ones (add |
qiita_db/metadata_template/util.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should you also check for LinkerPrimer, BarcodeSequence, and ReverseBarcodeSequence (optional)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a quick and fast check to see if the file is a mapping file. Note that templates do not have any # sign at the beginning, not even for comments. The fact that the file starts with '#SampleID' is enough to know that we are not parsing a template, but a mapping file.
|
Code looks fine, only one comment. However, not sure if we should have a qiime map loading reimplementation here or use qiime. I think having it here could help us deprecate the other one for qiime 2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment is outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like I end up removing two lines that I shouldn't. I've re-added the lines that define the message and message level in case of success.
|
Code looks great, I'm gonna test the system now. @biocore/qiita-admin would be good if others could test this. |
|
As for having two parsers, I almost want to re-use the code in QIIME, On (May-29-15| 9:38), Antonio Gonzalez wrote:
|
|
do you want to have a call about the 2 parsers thing? I think it will be faster than discussing over here. |
|
Sure, anyone else who would like to join? On (May-29-15|10:00), josenavas wrote:
|
|
@ElDeveloper @antgonza this should be ready to review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the escalation from "looks like" to "is" 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hahaha, yeah it was way shorter....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add this exception to this try/except.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
PS - You also have some PEP8 failures: |
|
Thanks @ElDeveloper . I don't understand why the flake8 in travis is different from the one on my machine... I think the one in conda has something different. |
|
Thanks @josenavas. Yeah, conda is sometimes a bit outdated compared to the pypi packages ... |
|
I hereby officially declare this as 👍! If someone else wants to go ahead and merge, that would be awesome. |
In nomine Patris, et Filii, et Spiritus Sancti. Amen |

Built on top of #1207
This PR adds the ability to upload a QIIME mapping file trough the interface. When uploading a QIIME mapping file, a SampleTemplate and a PrepTemplate is created.